<!-- DOWNLOADED FROM WWW.SCRIPTGATES.COM -->
<!DOCTYPE html>
<html>
<head>
<?php $this->load->view('js-css-view') ?>
</head>

<body>
<div class="mainwrapper">    
    <div class="header">
        <?php $this->load->view('header-view'); ?>
    </div>    
    <div class="leftpanel">
         <?php $this->load->view('menu-view'); ?>
    </div><!-- leftpanel -->
    
    <div class="rightpanel">        
        <ul class="breadcrumbs">
            <li><a href="<?php echo base_url() ?><?php echo $link; ?>"><i class="iconfa-home"></i></a> <span class="separator"></span></li>
            <li><?php echo $current; ?></li>            
        </ul>
        
        <div class="pageheader">
            <form action="<?php echo base_url() ?>search" method="post" class="searchbar" />
                <input type="text" name="keyword" placeholder="To Search Song, Type & hit enter" />
            </form>
            <div class="pageicon"><span class="iconfa-home"></span></div>
            <div class="pagetitle">                
                <h1><?php echo $current; ?></h1>
            </div>
        </div><!--pageheader-->
        
        <div class="maincontent">
            <div class="maincontentinner">
               <div class="row-fluid">
                    <div id="dashboard-left" class="span12">
                        
                        <h1 class="subtitle2">Welcome</h1>
                        
                        
                          <h4 class="subtitle">Dashboard Administrator - Karaoke App</h4>
                        
                        <p>
                            Selamat datang di Dashboard Administrator Karaoke App. Halaman ini khusus untuk meng-<i>update</i> Content Data Audio, Data Video Clip, Data Pengguna dan Monitoring Statistik Pengguna Applikasi Karaoke App.
                        </p>
                         
                        
                        <br />
                         <h2 class="subtitle">Logs History Karaoke App</h2>
                        <div class="tabbedwidget tab-primary">
                            <ul>
                                <li><a href="#tabs-1"><span class="iconfa-user"></span></a></li>
                                <li><a href="#tabs-2"><span class="iconfa-play-circle"></span></a></li>
                                <li><a href="#tabs-3"><span class="iconfa-music"></span></a></li>
                            </ul>
                            <div id="tabs-1" class="nopadding">
                                <h5 class="tabtitle">Last Logged In Users</h5>
                                <ul class="userlist">
                                   <?php foreach($login_logs as $row) { ?>
                                    <li>
                                        <div>
                                            <img src="<?php echo base_url().$row['path_image'] ?>" alt="" class="pull-left" />
                                            <div class="uinfo">
                                                <h5><?php echo $row['username'] ?></h5>
                                                <span class="pos"></span>
                                                <span>Last Login : <?php echo Tanggal::formatDateTime($row['action_time']) ?></span>
                                            </div>
                                        </div>
                                    </li>
                                   <?php } ?>
                                </ul>
                            </div>
                            <div id="tabs-2" class="nopadding">
                                <h5 class="tabtitle">Last User Recorded</h5>
                                <ul class="userlist userlist-favorites">
                                                                      
                                     <?php foreach($record_logs as $row) { ?>
                                    <li>
                                        <div>
                                            <img src="<?php echo base_url().$row['path_image'] ?>" alt="" class="pull-left" />
                                            <div class="uinfo">
                                                <h5><?php echo $row['username'] ?></h5>
                                                <span class="pos"><?php echo $row['title'] ?></span>
                                                <span>Last Recording : <?php echo Tanggal::formatDateTime($row['action_time']) ?></span>
                                            </div>
                                        </div>
                                    </li>
                                   <?php } ?>
                                    
                                    
                                </ul>
                            </div>
                            <div id="tabs-3" class="nopadding">
                                <h5 class="tabtitle">Last Song Played</h5>
                                <ul class="userlist">
                                  
                                   
                                     <?php foreach($play_logs as $row) { ?>
                                    <li>
                                        <div>
                                            <img src="<?php echo base_url().$row['path_thumbnail'] ?>" alt="" class="pull-left" />
                                            <div class="uinfo">
                                                <h5><?php echo $row['username'] ?></h5>
                                                <span class="pos"><?php echo $row['title'] ?> - <?php echo $row['artist'] ?></span>
                                                <span>Last Play : <?php echo Tanggal::formatDateTime($row['action_time']) ?></span>
                                            </div>
                                        </div>
                                    </li>
                                   <?php } ?>
                                    
                                    
                                </ul>
                            </div>
                        </div><!--tabbedwidget-->
                        
                      
                        
                        
                    </div><!--span8-->
              
                </div><!--row-fluid-->
                
                <div class="footer">
                    <?php $this->load->view('footer-view'); ?>
                    <script type="text/javascript">
    jQuery(document).ready(function() {
        // tabbed widget
        jQuery('.tabbedwidget').tabs();
     
    });
</script>
                </div><!--footer-->
                
            </div><!--maincontentinner-->
        </div><!--maincontent-->
        
    </div><!--rightpanel-->
    
</div><!--mainwrapper-->

</body>
</html>